<!-- DISPOSICION CSS BASE -->
<link rel="stylesheet" type="text/css" href="assets/css/disposicion.css" />
<!-- TEMPLATE por defecto - Aplay (aplay.css)- -->
<link rel="stylesheet" type="text/css" href="assets/templates/aplay/aplay.css" />

<script src="js/phpFunctions.js" type="text/javascript"></script>

<link href="js/calendar/skins/aqua/theme.css"  rel="stylesheet" type="text/css"/>
<script src="js/calendar/calendar.js" type="text/javascript"></script>
<script src="js/calendar/lang/calendar_es.js" type="text/javascript"></script>
<script src="js/calendar/calendar_setup.js" type="text/javascript"></script>
<!-- BLOQUE INSERTADO  -->
<script src="js/jquery/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="js/jquery/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
<script src="js/jquery/jquery.simplemodal-1.3.5.js" type="text/javascript"></script>

<script src="js/jshashtable.js" type="text/javascript"></script>
<script language="javascript" src="js/MMapSidebars/monitor.js"></script>
<script src="js/cookie.js" type="text/javascript"></script>
<script src="js/utils.js" type="text/javascript"></script>
<link href="styles/tablero.css"  rel="stylesheet" type="text/css"/>

<link type="text/css" href="js/jquery/css/ui-lightness/jquery-ui-1.8.2.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery/easySlider1.7.js"></script>
<script type="text/javascript" src="js/jquery/jquery.dialogextend.js"></script>
<script type="text/javascript" src="js/jquery/jquery.filestyle.js" ></script>
<script type="text/javascript" src="js/jquery/ajaxupload.3.6.js"></script>

<!-- PANEL ACORDEON -->
<script type="text/javascript">
var seleccionActual = "vehiculos";

$j = jQuery.noConflict();
$j(document).ready(function(){
	
	$j(".btnPanel").click(function(){
		$j(".panel").toggle("fast");
		$j(this).toggleClass("active");
		return false;
	});
	// Inicio
	$j(".panel").toggle("fast");
	//$j(this).toggleClass("active");
});
</script>

<!-- ACORDEON -->
<script type="text/javascript">
	function clickOpcionAcordeon(siguienteSeleccion){
		if(seleccionActual != siguienteSeleccion){
			if(siguienteSeleccion != "misrutas"){
				if(cMapController.getMapActive().getRutaDesdeHistorico()){
					cMapController.getMapActive().cleanEstadoNuevaRuta();
				}
			}
			$j('#'+seleccionActual).removeClass('active').next().slideUp(function(){
				if(seleccionActual != siguienteSeleccion){
					$j("#"+seleccionActual).next().hide();
				}
			});
			$j("#"+siguienteSeleccion).toggleClass('active').next().slideDown();
			seleccionActual = siguienteSeleccion;
		}
		return false;
	}
$j(document).ready(function(){

	$j('.acc_contenedor').hide(); //Hide/close all contenedors
	$j('.acc_barra:first').addClass('active').next().show(); //Add "active" class to first barra, then show/open the immediate next contenedor
	//On Click
	$j('.acc_barra').click(function(){
		if( $j(this).next().is(':hidden') ) { //If immediate next contenedor is closed...
			$j('.acc_barra').removeClass('active').next().slideUp(); //Remove all .acc_barra classes and slide up the immediate next contenedor
			$j(this).toggleClass('active').next().slideDown(); //Add .acc_barra class to clicked barra and slide down the immediate next contenedor
			seleccionActual = this.id;
			if(seleccionActual != "misrutas"){
				if(cMapController.getMapActive().getRutaDesdeHistorico()){
					cMapController.getMapActive().cleanEstadoNuevaRuta();
				}
			}
		}
		return false; //Prevent the browser jump to the link anchor
	});
});
</script>

<!-- PANEL MONITOR -->
<script type="text/javascript">
$j(document).ready(function(){
	// abrir panel
	$j("#abrirPanel").click(function() {
		$j('#reportesMenu').css("display","none");
		if( ($j('#panel_monitor_abierto').css("display") == "none" ) || ($j('#panel_monitor_abierto').css("display") == "block" && $j('#monitorMenu').css("display") == "block")){
			$j("#panel_monitor_abierto").slideToggle(100,function(){
				$j('#monitorMenu').css("display","block");
				$j('#monitor_content').css("display", "block");
				resizePanelAbierto();
				});
		}else{
			$j('#monitorMenu').css("display","block");
			$j('#monitor_content').css("display", "block");
		}
		$j("#abrirPanelReportes").removeClass("active");
		$j(this).toggleClass("active");
		return false;
	});

	// abrir panel reportes
	$j("#abrirPanelReportes").click(function() {
		$j('#monitorMenu').css("display","none");
		if( ($j('#panel_monitor_abierto').css("display") == "none" ) || ($j('#panel_monitor_abierto').css("display") == "block"  && $j('#reportesMenu').css("display") =="block") ){
			$j("#panel_monitor_abierto").slideToggle(100,function(){
					$j('#reportesMenu').css("display","block");
					$j('#reportes_content').css("display", "block");
					resizePanelAbierto();
					}
			);
		}else{
			$j('#reportesMenu').css("display","block");
			$j('#reportes_content').css("display", "block");
		}
		$j("#abrirPanel").removeClass("active");
		$j(this).toggleClass("active");
		return false;
	});

});
</script>